﻿using System.Collections.Generic;
using Sidvall.CodeGenerator.DataObjects;

namespace Sidvall.CodeGenerator.SortComparison
{
	public class SortReferences : IComparer<Reference>
	{
		public int Compare(Reference x, Reference y)
		{
			if (x == null)
				throw new System.ArgumentNullException("x");
			if (y == null)
				throw new System.ArgumentNullException("y");
			return x.Name.CompareTo(y.Name);
		}
	}
}
